package net.roseparadise.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Photo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tphoto"
    ,catalog="studio"
)

public class Photo  implements java.io.Serializable {


    // Fields    

     private Integer photoid;
     private Integer albumid;
     private String isstudio;
     private Integer memberid;
     private String uploaddate;
     private String photoname;
     private String filename;
     private String path;


    // Constructors

    /** default constructor */
    public Photo() {
    }

    
    /** full constructor */
    public Photo(Integer albumid, String isstudio, Integer memberid, String uploaddate, String photoname, String filename, String path) {
        this.albumid = albumid;
        this.isstudio = isstudio;
        this.memberid = memberid;
        this.uploaddate = uploaddate;
        this.photoname = photoname;
        this.filename = filename;
        this.path = path;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="PHOTOID", unique=true, nullable=false)

    public Integer getPhotoid() {
        return this.photoid;
    }
    
    public void setPhotoid(Integer photoid) {
        this.photoid = photoid;
    }
    
    @Column(name="ALBUMID", nullable=false)

    public Integer getAlbumid() {
        return this.albumid;
    }
    
    public void setAlbumid(Integer albumid) {
        this.albumid = albumid;
    }
    
    @Column(name="ISSTUDIO", nullable=false, length=1)

    public String getIsstudio() {
        return this.isstudio;
    }
    
    public void setIsstudio(String isstudio) {
        this.isstudio = isstudio;
    }
    
    @Column(name="MEMBERID", nullable=false)

    public Integer getMemberid() {
        return this.memberid;
    }
    
    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }
    
    @Column(name="UPLOADDATE", nullable=false, length=14)

    public String getUploaddate() {
        return this.uploaddate;
    }
    
    public void setUploaddate(String uploaddate) {
        this.uploaddate = uploaddate;
    }
    
    @Column(name="PHOTONAME", nullable=false, length=30)

    public String getPhotoname() {
        return this.photoname;
    }
    
    public void setPhotoname(String photoname) {
        this.photoname = photoname;
    }
    
    @Column(name="FILENAME", nullable=false, length=50)

    public String getFilename() {
        return this.filename;
    }
    
    public void setFilename(String filename) {
        this.filename = filename;
    }
    
    @Column(name="PATH", nullable=false, length=50)

    public String getPath() {
        return this.path;
    }
    
    public void setPath(String path) {
        this.path = path;
    }
   








}